package com.sixmac.invoker;

import com.sixmac.module.Tenant;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestRemote {
    public static void main(String[] args) {

        ApplicationContext applicationContext = new ClassPathXmlApplicationContext(Tenant.class.getResource("/spring/")+"applicationContext.xml");
        IRemoteService service = (IRemoteService) applicationContext.getBean("iRemoteTest");
        service.startRmote("aaa");
    }
    public  static void TestClient(){
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext(Tenant.class.getResource("/test/")+"applicationContext.xml");
        IRemoteService service = (IRemoteService) applicationContext.getBean("iRemoteTest");
        service.startRmote("aaa");
    }
}
